import request from '@/utils/request'

// 查询销售订单统计列表
export function listSalesFinancialStatistics(query) {
  return request({
    url: '/module/salesFinancialStatistics/list',
    method: 'get',
    params: query
  })
}

// 查询销售订单统计详细
export function getSalesFinancialStatistics(leaseMonth) {
  return request({
    url: '/module/salesFinancialStatistics/' + leaseMonth,
    method: 'get'
  })
}

// 新增销售订单统计
export function addSalesFinancialStatistics(data) {
  return request({
    url: '/module/salesFinancialStatistics',
    method: 'post',
    data: data
  })
}

// 修改销售订单统计
export function updateSalesFinancialStatistics(data) {
  return request({
    url: '/module/salesFinancialStatistics',
    method: 'put',
    data: data
  })
}

// 删除销售订单统计
export function delSalesFinancialStatistics(leaseMonth) {
  return request({
    url: '/module/salesFinancialStatistics/' + leaseMonth,
    method: 'delete'
  })
}
